﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeFile="AdvisoryList.aspx.cs" Inherits="AdvisoryList" Title="无标题页" %>

<%@ Register Assembly="GoShopping.Components" Namespace="BaseText" TagPrefix="cc2" %>

<%@ Register Assembly="ExtensionGridView" Namespace="ExtensionControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <asp:ListView ID="lvAdvisory" runat="server" GroupItemCount="1" 
            onpagepropertieschanging="lvAdvisory_PagePropertiesChanging" 
            onitemdatabound="lvAdvisory_ItemDataBound">
            <GroupTemplate>
                <tr>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </tr>
            </GroupTemplate>
            <LayoutTemplate>                        
                <table style="width:800px" border=1>
                    <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                </table>
                <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvAdvisory" 
                    PageSize="20">
                    <Fields>
                        <asp:NumericPagerField />
                    </Fields>
                </asp:DataPager>
            </LayoutTemplate>
            <ItemTemplate>
              <tr>
                <td align="left" style=" width:200px">
                    咨询人:<asp:Label ID="lblUser" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                </td>
                <td align="left">
                    咨询主题:<asp:Label ID="Label1" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                </td>
              </tr>
              <tr align="left">
                <td style="text-indent:15px" colspan=2>
                    咨询内容:<asp:Label ID="Label2" runat="server" Text='<%# Eval("Content") %>'></asp:Label>
                </td>
              </tr>
              <tr>
                <td align="left" style="text-indent:30px" colspan=2>
                    <asp:Label ID="lblReply" runat="server" Text='<%# Eval("ReplyContent") %>'></asp:Label>
                </td>
              </tr>
              <tr>
                <td align="left" colspan=2>
                    咨询时间:<asp:Label ID="Label4" runat="server" Text='<%# Eval("CreateDate") %>'></asp:Label>
                </td>
              </tr>
            </ItemTemplate>
            <EmptyDataTemplate>
            尚没有咨询!
            </EmptyDataTemplate>
        </asp:ListView>
 </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content_rightarea" Runat="Server">
</asp:Content>

